<?php
/**
 * Push video content to frontend.
 * User: Long
 * Date: 3/23/11
 * Time: 1:53 AM
 */
?>

<?php 
global $more; 
if ( $widget_query->have_posts() ) : 
	while( $widget_query->have_posts() ) : 
		$widget_query->the_post(); 
		$more = 1; 
?>

<div class="wv-widget-body">
    <h4 class="wv-video-widget">
        <a href="<?php the_permalink() ?>"
           title="Click to view full information"
           id="video-<?php the_ID() ?>"><?php the_title() ?></a>
    </h4>

    <?php the_content() ?>

	<span class='comment-count wv-video-comment'>
		<a href="<?php the_permalink() ?>" title="View all comments"><?php echo get_comments_number() ?></a>
	</span>

	<span class='fb-button'>			
		<?php the_fb_button() ?>
	</span>
	
	<br class="clear">
		
</div>

<?php endwhile; wp_reset_postdata(); else: ?>
	<div class="wv-widget-body">
	    <h4 class="wv-video-widget">
	        <?php _e('No videos for today', 'wv') ?>
	    </h4>
	</div>
<?php endif ?>